package com.shenjies88.practice.designpatterns.decorator;

import com.shenjies88.practice.designpatterns.Battercake;
import com.shenjies88.practice.designpatterns.abstractclass.AbstractDecorator;

public class SausageDecorator extends AbstractDecorator {
    public SausageDecorator(Battercake battercake) {
        super(battercake);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + " 加一根香肠";
    }

    @Override
    public int cost() {
        return super.cost() + 2;
    }
}